package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;

/**
 * @Author: yiang
 * @Date:  2025/10/10 14:00
 * @Description: 
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_room")
public class Room implements Serializable {
    @TableId(value = "room_id", type = IdType.AUTO)
    private Integer roomId;

    /**
     * 房型名称
     */
    @TableField(value = "room_name")
    private String roomName;

    /**
     * 房屋面积
     */
    @TableField(value = "room_area")
    @Min(value = 20,message = "面积不能小于20")
    private Double roomArea;

    /**
     * 床型
     */
    @TableField(value = "room_bed")
    private Integer roomBed;

    /**
     * 窗户
     */
    @TableField(value = "room_win")
    private Integer roomWin;

    /**
     * 类型
     */
    @TableField(value = "room_type")
    private Integer roomType;

    /**
     * 0待审核1通过2驳回
     */
    @TableField(value = "room_status")
    private Integer roomStatus;

    /**
     * 驳回原因
     */
    @TableField(value = "room_content")
    private String roomContent;

    @TableField(exist = false)
    private String bedName;

    @TableField(exist = false)
    private String winName;

    @TableField(exist = false)
    private String typeName;

    @TableField(exist = false)
    private Integer pageSize;

    @TableField(exist = false)
    private Integer pageNum;

    @TableField(exist = false)
    private List<Imgs> imgs;


    private static final long serialVersionUID = 1L;

    public static final String COL_ROOM_ID = "room_id";

    public static final String COL_ROOM_NAME = "room_name";

    public static final String COL_ROOM_AREA = "room_area";

    public static final String COL_ROOM_BED = "room_bed";

    public static final String COL_ROOM_WIN = "room_win";

    public static final String COL_ROOM_TYPE = "room_type";

    public static final String COL_ROOM_STATUS = "room_status";

    public static final String COL_ROOM_CONTENT = "room_content";
}